import request from "@/utils/request";

// 微信注册
export const registryWechat = (code) => {
    return request({
        url: '/app/user/registry/wechat/code',
        method: 'post',
        data: {
            code: code
        }
    })
}

// 微信登录
export const loginWechat = (code) => {
    return request({
        url: '/app/user/login/wechat/code',
        method: 'post',
        data: {
            code: code
        }
    })
}

// 定时空请求，刷新登录态
export const refreshToken = () => {
    return request({
        url: '/app/user/refresh/token',
        method: 'get'
    })
}